package com.kintreda.ieco_server.util.image;

import javax.servlet.http.HttpServletRequest;

/**
 * 获取请求参数工具类
 * @author hongwei
 */
public class RequestUtil {
	/**
	 * 获取字符串参数并置入属性值
	 */
	public static String getStringParam(HttpServletRequest request, String name, String defVal) {
		String value = request.getParameter(name);
		if(value == null) value = defVal;
		if(value != null) request.setAttribute(name, value);
		return value;
	}
}
